package com.ruike.mapper;

import com.ruike.pojo.Clazzes;
import com.ruike.pojo.Teacher;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 吴泽胜
 * @FileName TeacherMapper
 * @date 2020-11-16 5:40 下午
 * @Software: IntelliJ IDEA
 */
@Mapper
public interface TeacherMapper {

    // 添加老师
    public void addTeacher(Teacher teacher);

    // 老师登陆
    public Teacher findTeacherByteacherIdAndPassword(Teacher teacher);

    // 通过id删除老师
    public Teacher deleteTeacherByteacherId(Integer id);

    // 通过id修改老师
    public void updataTeacher(Integer id);

    // 通过 工号 查询老师
    public Teacher findTeacherByteacherId(String teacher_id);

    // 获取 Teacher 列表
    public List<Teacher> getTeacherList() throws Exception;

}
